﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Users.VO
{
    [AutoMapFrom(typeof(UserCash))]
    public class UserCashVO:EntityDto<long>
    {
        /// <summary>
        /// 银行卡姓名
        /// </summary>
        public string CardName { get; set; }
        /// <summary>
        /// 银行卡号
        /// </summary>
        public string CardNumber { get; set; }
        /// <summary>
        /// 银行名称
        /// </summary>
        public string BankName { get; set; }
        /// <summary>
        /// 提现金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 提现状态
        /// </summary>
        public CashStatus Status { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 提现订单编号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrorMessage { get; set; }
        /// <summary>
        /// 提现类型
        /// </summary>
        public CashType CashType { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public UserCashVerifyStatus VerifyStatus { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 申请人电话
        /// </summary>
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 提现审核状态名称
        /// </summary>
        public string VerifyStatusView => VerifyStatus.GetDescription();
        /// <summary>
        /// 提现状态名称
        /// </summary>
        public string StatusView => Status.GetDescription();
    }
}
